package StudyCode.summary.myfile;

import java.io.IOException;
import java.nio.file.LinkOption;
import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class ConvertPathToRealPath {
	public static void main(String[] args) {
		Path path = Paths.get("E:", "Copy/1", "test.txt");
		try {
			Path real_path = path.toRealPath(LinkOption.NOFOLLOW_LINKS);
			System.out.println("Path to real path: " + real_path);
		} catch (IOException e) {
			System.err.println(e);
		}
	}
}
